﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Chinaer.Model.Entities
{
    /// <summary>
    /// 菜单明细 对应的是菜品 就是对应的每种菜
    /// </summary>
    [Table("MenuDetail")]
    public class Model_MenuDetail:Model_Base
    {
        /// <summary>
        /// 菜单明细 编号
        /// </summary>
        [Column("ID")]
        [Key]
        [Required]
        public string ID { get; set; }
        /// <summary>
        /// 菜单明细名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 所属店铺
        /// </summary>
        public string DianPuID { get; set; }
        /// <summary>
        /// 菜单明细单位编号
        /// </summary>
        public string MenuDetailDanWeiID { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal? Price { get; set; }
        /// <summary>
        /// 对应的子分类的编号
        /// </summary>
        public string SubCategoryID { get; set; }
        /// <summary>
        /// 每天卖的总份数上限
        /// </summary>
        public int SellNumbers { get; set; }
        /// <summary>
        /// 是否启用每天卖的总份数上限
        /// </summary>
        public bool IsUseSellNumbers { get; set; }
        /// <summary>
        /// 菜单明细状态编号
        /// </summary>
        public string MenuDetailStatusID { get; set; }

        /// <summary>
        /// 菜单明细的描述
        /// </summary>        
        public string MenuDetailDescription { get; set; }

    }
}
